package t03;

import java.util.Comparator;
/**
 * 姓名比较器
 */
public class NameComparator implements Comparator<Employee> {
    @Override
    public int compare(Employee o1, Employee o2) {
        return o1.getName().compareTo(o2.getName());
    }
}
